package com.yc.navy.goods.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yc.navy.goods.dto.ProductDTODTO;
import com.yc.navy.goods.service.IProductInfoService;

@RestController
@RequestMapping("/products")
public class ProductFeignClientController {
	@Autowired
	private IProductInfoService productInfoService;
	
	@RequestMapping("/checkshopid")
	Integer checkshopid(@RequestBody ProductDTODTO productDTODTO ) {
		Long pid = productDTODTO.getPid();
		return productInfoService.checkShopid(pid);
	}
}
